package app.tasks.schedule;

import app.agent.Schedule;
import jade.core.behaviours.OneShotBehaviour;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Name: EndBehaviour
 * @Description:
 * @Author: colfish
 * @Date: 2021/4/10 23:45
 * 好好学习，天天向上！
 */
public class End extends OneShotBehaviour {

    private Schedule schedule;
    private Logger logger = LogManager.getLogger(this.getClass());

    public End(Schedule schedule){
        this.schedule = schedule;
    }


    @Override
    public void action() {
        logger.info("AdminAgent: <" + schedule.getLocalName() +"> End Task...");
    }
}
